#ifndef GENERALSETTINGS_H
#define GENERALSETTINGS_H

#include <QtCore/QString>
#include <QtGui/QFont>

QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE

struct GeneralSettings
{
    GeneralSettings();

    void toSettings(QSettings* s) const;
    void fromSettings(QSettings* s);

    bool equals(const GeneralSettings& as) const;

    QString language;
    QString style;
    QFont font;
};

inline bool operator==(const GeneralSettings& as1, const GeneralSettings& as2) { return as1.equals(as2); }
inline bool operator!=(const GeneralSettings& as1, const GeneralSettings& as2) { return !as1.equals(as2); }

#endif // GENERALSETTINGS_H
